package com.adapter.objectadapter.self;

public class Phone {

    public void charging(VoltageAdapter voltageAdapter){
        int voltageAdapter5V = voltageAdapter.get5V();
        if(voltageAdapter5V == 5){
            System.out.println("正确");
        } else {
            System.out.println("错误");
        }
    }
}
